home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
oper_sys
/
oasis
/
oasisegs.lha
/
egs
/
fib.c
< prev
next >
Wrap
C/C++ Source or Header
|
1992-03-25
|
169b
|
16 lines
/* C version of fib benchmark */
#include <stdio.h>
int fib(x)
int x;
{
if (x <= 1) return 1;
return (fib(x-1)+fib(x-2));
}
main()
{
printf("%d\n", fib(30));
}